const router = require('koa-router')()

const home = require('./home')
const activity = require('./activity')
const column = require('./column')
const market = require('./market')
const me = require('./me')
const common = require('./common')
const comment = require('./comment')

router.use('/api/cms/home', home.routes(),home.allowedMethods())
router.use('/api/cms/activity', activity.routes(),activity.allowedMethods())
router.use('/api/cms/specialColumns', column.routes(),column.allowedMethods())
router.use('/api/cms/market', market.routes(),market.allowedMethods())
router.use('/api/cms/me', me.routes(),me.allowedMethods())
router.use('/api/cms/comments', comment.routes(),comment.allowedMethods())
router.use('/common', common.routes(),common.allowedMethods())
module.exports = router
